package com.bby.captcha.service;

import cn.hutool.captcha.LineCaptcha;
import com.bby.common.exception.BBYException;

public interface ICaptchaService {

    void createMailCaptcha(String mail) throws BBYException;

    LineCaptcha creatCaptchaById(String id);

    void verifyCaptcha(String id, String inputCode) throws BBYException;

    String createMailToken(String id, String inputCode) throws BBYException;

    void checkMailToken(String token, String mail) throws BBYException;
}
